<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ipb" uri="http://www.ipedo.com.cn/ipb"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%@ page import="cn.agiledata.bank.hibernateBean.GradeRules"%>
<%
	String path = request.getContextPath();
	GradeRules gr = (GradeRules) request.getAttribute("grading");
%>
<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/newstyle.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/common.css" rel="stylesheet" type="text/css" />
<div id="mainFrame">
	<div class="rightSider">
		<div class="sub_title">
			<span class="bluefont18bdrop">客户等级升级</span>
		</div>
		<table width="100%" border="0" align="center" cellpadding="5"
			cellspacing="1">
			<tr>
				<td height="30" bgcolor="#FFFFFF" class="orangefont14b">
					客户等级：
					<span class="fontblue14"><%=gr.getGroupsByGrading().getName()%>
					</span>
				</td>
			</tr>
			<tr>
				<td height="30" bgcolor="#FFFFFF">
					<table width="100%" border="0" align="center" cellpadding="7"
						cellspacing="1" bgcolor="#88A7C0" style="margin:10px 0;">
						<tr>
							<td bgcolor="#FFFFFF">
								<table width="100%" border="0" cellpadding="3" cellspacing="0">
									<tr>
										<td width="3%" height="25" valign="top"
											style="border-bottom:1px dotted #ccc;"></td>
										<td width="97%" align="left" class="fontblue14"
											style="border-bottom:1px dotted #ccc;">
											<a href="<%=path%>/route.do?modual=space$rule"
												class="dropblue14b">客户等级说明</a>
										</td>
									</tr>
									<logic:present name="ifMobile">
										<tr>
											<td height="30" valign="top">
												&nbsp;
											</td>
											<td align="left" class="blue12">
												<span class="text9green">手 机 验证：</span>
												<logic:equal name="ifMobile" value="Y">绑定您的手机<span
														class="bluefont12u">(您的手机已经绑定) </span>
												</logic:equal>
												<logic:equal name="ifMobile" value="N">
													<a href="<%=path%>/route.do?modual=space$mobile"
														class="bluefont12u">点击这里绑定您的手机<span class="font_gray">(您的手机尚未绑定)
													</span>
													</a>
												</logic:equal>
											</td>
										</tr>
									</logic:present>
									<logic:present name="ifBank">
										<tr>
											<td height="30" valign="top">
												&nbsp;
											</td>
											<td align="left" class="blue12">
												<span class="text9green">卡验证：</span>
												<logic:equal name="ifBank" value="Y">您至少使用您的银行卡做过一次充值操作<span
														class="font_gray">(您已经通过了银行卡验证) </span>
												</logic:equal>
												<logic:equal name="ifBank" value="N">您至少使用您的银行卡做过一次充值操作<span
														class="font_gray">(您尚未通过银行卡验证) </span>
												</logic:equal>
											</td>
										</tr>
									</logic:present>
									<logic:present name="ifCard">
										<tr>
											<td height="30" valign="top">
												&nbsp;
											</td>
											<td align="left" class="blue12">
												<span class="text9green">身份证验证：</span>
												<logic:equal name="ifCard" value="Y">您已经通过了身份证验证</logic:equal>
												<logic:equal name="ifCard" value="W">您的身份证正在审核过程中</logic:equal>
												<logic:equal name="ifCard" value="N">
													<a href="<%=path%>/page/myspace/preSubmitIdcard.do"
														class="font_gray">点击这里进行身份证验证(您尚未通过身份证验证)</a>
												</logic:equal>
											</td>
										</tr>
									</logic:present>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>


			<tr>
				<td height="30" align="right" bgcolor="#FFFFFF">
					&nbsp;
				</td>
			</tr>
			<%
			if (gr.getGroupsByNextGrading().getId().longValue() != -1) {
			%>
			<logic:equal name="grading" property="gradingMethod" value="1">
				<tr>
					<td height="30" bgcolor="#FFFFFF" class="orangefont14b">
						升级至
						<%=gr.getGroupsByNextGrading().getName()%>
					</td>
				</tr>
				<tr>
					<td height="30" bgcolor="#FFFFFF">
						您需要经过一些验证来完成本次升级。
						<a href="#" onclick="location.href='upGrading.do';"
							class="dropblue14b">马上升级&gt;&gt;</a>
					</td>
				</tr>
				<tr>
					<td height="30" bgcolor="#FFFFFF">
						<table width="100%" border="0" align="center" cellpadding="7"
							cellspacing="1" bgcolor="#f9e277" style="margin:10px 0;">
							<tr>
								<td bgcolor="#fffdf5">
									<table width="100%" border="0" cellpadding="3" cellspacing="0">
										<tr>
											<td width="3%" height="25" valign="top"
												style="border-bottom:1px solid #ccc;"></td>
											<td width="97%" align="left" class="red12b"
												style="border-bottom:1px solid #ccc;">
												特别提醒
											</td>
										</tr>
										<tr>
											<td valign="top">
												&nbsp;
											</td>
											<td align="left" class="font_gray">
												您必须通过以下
												<span class="text9green">A类</span>和
												<span class="text9green">B类</span>认证（A类认证中的所有认证全通过才算通过此类认证，B类认证至少通过一项才算通过此类认证）
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td height="30" bgcolor="#FFFFFF" class="bluefont14b">
						A类认证：
						<logic:iterate id="it" name="mustMessage">
							<logic:equal name="it" property="ifAccess" value="Y">
								<span class="blue12"><ad:TypeChange
										typeId="AUTHENTICATION_METHOD">
										<bean:write name="it"
											property="authentication.authenticationMethod" />
									</ad:TypeChange>验证</span>
								<span class="font_gray">(已经通过验证)</span>
							</logic:equal>
							<logic:equal name="it" property="ifAccess" value="N">
								<span class="blue12"><ad:TypeChange
										typeId="AUTHENTICATION_METHOD">
										<bean:write name="it"
											property="authentication.authenticationMethod" />
									</ad:TypeChange>验证</span>
								<span class="font_gray">(尚未通过验证)</span>
							</logic:equal>
    			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    		</logic:iterate>
					</td>
				</tr>
				<logic:present name="warn">
					<tr>
						<td height="30" bgcolor="#FFFFFF">
							<span class="bluefont14b">B类认证：</span>
							<logic:iterate id="itt" name="warn">
								<logic:equal name="itt" property="ifAccess" value="Y">
									<span class="blue12"><ad:TypeChange
											typeId="AUTHENTICATION_METHOD">
											<bean:write name="itt"
												property="authentication.authenticationMethod" />
										</ad:TypeChange>验证</span>
									<span class="font_gray">(已经通过验证)</span>
								</logic:equal>
								<logic:equal name="itt" property="ifAccess" value="N">
									<span class="blue12"><ad:TypeChange
											typeId="AUTHENTICATION_METHOD">
											<bean:write name="itt"
												property="authentication.authenticationMethod" />
										</ad:TypeChange>验证</span>
									<span class="font_gray">(尚未通过验证)</span>
								</logic:equal>
							</logic:iterate>
						</td>
					</tr>
				</logic:present>
			</logic:equal>
			<logic:equal name="grading" property="gradingMethod" value="2">

				<tr>
					<td height="30" bgcolor="#FFFFFF" class="orangefont14b">
						升级至
						<%=gr.getGroupsByNextGrading().getName()%>
					</td>
				</tr>
				<tr>
					<td height="30" bgcolor="#FFFFFF">
						您可能需要消费一定的积分来完成本次升级。
						<br />
						本次升级后您的积分账户将
						<logic:lessEqual name="grading" property="adjusteScore" value="0">扣除</logic:lessEqual>
						<logic:greaterThan name="grading" property="adjusteScore"
							value="0">增加</logic:greaterThan>
						：
						<%=Math.abs(gr.getAdjusteScore().doubleValue())%>
						分。
						<a href="#" onclick="dosubmit();" class="dropblue14b">马上升级&gt;&gt;</a>
					</td>

				</tr>
				<SCRIPT language="JavaScript" type="text/javascript">
			function dosubmit(){
				<logic:lessEqual name="grading" property="adjusteScore" value="0">
					var adjust =  "扣除"
				</logic:lessEqual>
				<logic:greaterThan name="grading" property="adjusteScore" value="0">
					var adjust =  "增加"
				</logic:greaterThan>
				if (confirm("本次升级将 "+adjust+"您<%=Math.abs(gr.getAdjusteScore().doubleValue())%>分积分，您确定这么做吗？")) {
					location.href="upGrading.do";
				}
			}
		  </SCRIPT>
			</logic:equal>
			<%
			}
			%>
			<%
			if (gr.getGroupsByNextGrading().getId().longValue() != -1) {
			%>
			<logic:notEqual name="warning" value="">
				<tr>
					<td height="25" align="center" class="twoSiderLine">
						&nbsp;
						<font color="#FF0000"><bean:write name="warning" />！</font>
					</td>
				</tr>
			</logic:notEqual>
			<%
			}
			%>
			<tr>
				<td height="55" align="right" bgcolor="#FFFFFF">
					<input name="button3" type="button" class="button_style"
						onclick="loading('<%=path%>/route.do?modual=space$account');"
						value="返 回" />
				</td>
			</tr>
		</table>
	</div>
</div>
<div align="center">
	<!-- include 我的账户左侧账户管理菜单 -->
	<jsp:include page="left.jsp?current=myspace" />
</div>
